GUI Help > Special > setWindowIcon

setWindowIcon
setWindowIcon handle gadget, str fileName

Description:
Sets the icon which appears in the upper-left hand corner of a window gadget. This applies only to gadgets with a titlebar and system menu.

Return Value:


Parameters:
gadget Handle of a window gadget
fileName Handle of an icon file. This should be a 16x16 icon in .ICO format. 256 colours or less is recommended.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)